HOST-LINK communication driver

 

HOST-LINK communication driver is the driver to communicate with PLC of OMRON in Japan.

 

1. Read Settings

 

<Figure 1> is read setting example of HOST-LINK communication driver.

<Figure 1>  Read setting example of HOST-LINK communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(2), Data Bit(7), Stop Bit(2) respectively, according to setting of PLC.

 

Note) HJ RCU communication driver should to set Read cycle time about 200ms.

 

HOST-LINK communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – 0 ~ 31 unit number of PLC.

2) Read Command – Memory type of PLC = IR, HR, AR, LR, DM, PV.

3) Read Start Address Read start address in memory type.

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – Word unit read size.

 

Read schedule example)

READ, 0, IR, 0, 0,  10,

READ, 0, HR, 0, 10, 10,

READ, 0, AR, 0, 20, 10,

READ, 0, LR, 0, 30, 10,

READ, 0, DM, 0, 40, 10,

READ, 0, PV, 0, 50, 10,

 

2. Writing settings

You can set the value of memory type by using write settings.

 

Note) You can write only when the PLC status is 'Monitoring'.

Also can't write at 'Run' status.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION            0 ~ 31 unit number of PLC.

3)  ADDRESS          Writing address in memory type.

4)  Extra1                   Write memory type of PLC = IR, HR, AR, LR, DM, PV, STAT.

5)  Extra2                   Don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0003, Extra1:HR,  Extra2 :

The setting parameter shown above is bit writing(On/Off) example of 3 bit, 0 Word of HR memory type, 1 unit number PLC.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION            0 ~ 31 unit number of PLC.

3)  ADDRESS          Writing address in memory type.

4)  Extra1                   Write memory type of PLC = IR, HR, AR, LR, DM, PV, STAT.

5)  Extra2                   Don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0015, Extra1:IR,  Extra2 :

The setting parameter shown above is word unit writing example of 15 Word of IR memory type, 1 unit number PLC.

 

DIP switch setting of OMRON PLC

C200HS model: When you communicate with RS-232C port of CPU, you have to set 'RS232:Fixed Setting switch =  ON'.